﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using OperationPlugins.Validators.DataAnnotations;

namespace TimeProject.WebSite.ViewModels
{
    [UsePluginValidators]
    public partial class UsersViewModel : ViewModelBase
    {
        public bool IsChanged { set; get; }


        public List<UserViewModel> Users { get; set; }

        #region Testing
        public List<int> ProjectId { get; set; }
        public List<List<int>> TaskId { get; set; }
        public List<ProjectViewModel> DataBase { get; set; }
        public string JokuArvo { get; set; }

//        [Computed]
        public string IsEditable
        {
            get { return "false"; }
        }

        #endregion


        public UserViewModel GetUserByIndex(int index)
        {
            return Users[index];
        }


    }
}